package cn.com.sd.log;


public class LogManager {

	private static LogManager instance;

	private boolean debug = false;
	
//	private IServiceLogService serviceLogService = new ServiceLogServiceImpl();
	
	public static LogManager getInstance() {
		if (instance == null) {
            instance = new LogManager();
            return instance;
		} else {
			return instance;
		}
	}
	
	/**
	 * 开始启动日志
	 */
	public synchronized void startDebug() {
		if (!debug) {
			debug = true;			
		}
	}

	/**
	 * 结束日志
	 */
	public synchronized void stopDebug() {
		if (debug) {
			debug = false;
		}
	}
}
